Repository navigation
Conversation
…ping the next project
… removing its folders
…ad of stopping the next project
… before its project closed
…ed copy is updated
…r copy before a project sync
…iled copy before a project sync
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Closes #255
Refs #263
A server plugin whose
deactivatethrows no longer stops the switch to the next project:ServerPluginHost._stoplogsServer entry failed to deactivateand goes on, sosyncProject,_replaceand the restore of a shadowed copy keep working. The new unit specs forServerPluginHostandProjectRegistry(#263) found more ordering bugs in the same host, fixed here too:deactivate(name, dir)keeps the shadowed copy when it stopped nothing (install or uninstall in another folder);syncProjectcalls the newest one wins;bundled < installed < project < dev. Updating the installed copy keeps a running project copy, and a dev copy keeps running over a project copy;disposerestores no shadowed copy.ProjectRegistrygets unit tests only (sharing and closing, refused folders, sweep, trust, the gateway path with fakes, an unreadablerecent-projects.json). #263 stays open: the watcher, unreadable-listing and registry_applypaths are tested on their own branches.How do you test this PR?
promise rejected "Error: boom"; after: 3/3 pass.expected ['@acme/a'] to deeply equal []before), "keeps a dev copy over the project copy asked for meanwhile", "runs no shadowed copy again on dispose", "stops the project copy run again after a dev copy failed, when its project closed" (expected 'project on' to be 'project off'before). The reviewers' scripted orderings were rerun after each round and give the expected result.test/plugin5 runs in a row (26/26 each),pnpm typecheck,pnpm lint: all pass.pnpm buildran in round 1. e2e not run (server logic only).pnpm build, lint, typecheck,pnpm test --force(1014 passed, 1 skipped) and the full e2e suite with the engine (141/141, Chromium only).Merge danger
@nanoforge-dev/editor-server-corehas no runtime dependents outside the editor; merging tomaindeploys the editor app.syncProjectwaits for project activations in flight before it stops copies; an oldersyncProjectreturns early once a newer one starts; an installed or bundled copy no longer replaces a running project copy; a dev copy beats a project copy;disposeno longer restores shadowed copies.shortcut:comments: one shadowed copy per name; updating an installed copy that shadows a bundled one starts the bundled copy for a moment;disposedoes not stop an activation still pending; a hung projectactivateholds every later sync.packages/server-core/test/project/project-registry.spec.tsis also created by fix/server-core-fs-safety (fix(server-core): keep project file operations inside the project #384) and fix/load-missing-folder (fix(editor): say a missing folder of a link is missing before the trust prompt #371). Whoever merges second or third folds the tests together: one top-level setup, the later suites inside their owndescribe.server-plugins.ts: squash at merge.Follow-up issues
Quality gate
pnpm lint; 2 taste notes)